package com.neusoft.neu24.nep.gateway.cfg;

import com.neusoft.neu24.nep.gateway.filter.AuthenticationGlobalFilter;
import com.neusoft.neu24.nep.gateway.filter.CorsGlobalFilter;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class GlobalFilterConfiguration {
    @Bean
    public GlobalFilter customFilter() {
        return new AuthenticationGlobalFilter();
    }
    @Bean
    public GlobalFilter crosFilter() {
        return new CorsGlobalFilter();
    }
}
